import { createRouter, createWebHistory } from 'vue-router'
import First from '@/components/FirstPage.vue'

const routes = [
    {
        path: '/',
        name: 'Fisrt',
        component: First,
        redirect: "/HomePage",
        children: [
            //二级路由
            {
                path: "/AntecedentPage",
                component: () => import("@/views/AntecedentPage.vue"),
            },
            {
                path: "/ReportVuePage",
                component: () => import("@/views/ReportVuePage.vue"),
            },
            {
                path: "/HomePage",
                component: () => import("@/views/HomePage.vue"),
            },
            {
                path: "/PersonCarMatchPageList",
                component: () => import("@/views/PersonCarMatchListPage.vue"),
            },
            {
                path: "/PersonCarMatchPage",
                component: () => import("@/views/PersonCarMatchPage.vue"),
            },
            {
                path: "/PSIPage",
                component: () => import("@/views/PSIPage.vue"),
            },
            {
                path: "/ChannelDynamicPenetrationPage",
                component: () => import("@/views/ChannelDynamicPenetrationPage.vue"),
            },
            {
                path: "/InternalControlManagementPage",
                component: () => import("@/views/InternalControlManagementPage.vue"),
            },
            {
                path: "/AntecedentModelManagerPage",
                component: () => import("@/views/AntecedentModelManagerPage.vue"),
            },
             {
                path: "/PeopleAndVehicleMatchPage",
                component: () => import("@/views/PeopleAndVehicleMatchPage.vue"),
            },
             {
                path: "/TeamManagerPage",
                component: () => import("@/views/TeamManagerPage.vue"),
            },
            {
                path: "/AntecedentModelInfoPage",
                component: () => import("@/views/AntecedentModelInfoPage.vue"),
            },
            {
                path: "/OrgAdminPage",
                component: () => import("@/views/OrgAdminPage.vue"),
            },
            {
                path: "/UserAdminPage",
                component: () => import("@/views/UserAdminPage.vue"),
            },
            {
                path: "/PermissionAdminPage",
                component: () => import("@/views/PermissionAdminPage.vue"),
            }
        ]
    }
]

const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    routes
})

export default router
